Fix Exception Occurred While Executing Grant [write Secure Settings

Fix Exception Occurred While Executing Grant [write Secure Settings